<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/4 0004
 * Time: 下午 9:58
 */

/**
 * 辅助函数
 */

/*打印*/
function p($name)
{
    echo '<pre>';
    print_r($name);
    echo '</pre>';
}

/*是否post提交*/
function ispost()
{
    if($_SERVER['REQUEST_METHOD'] == 'POST'){
        return true;
    }
}